package com.vcixp.install.adapter.impl;

import java.util.Map;

import com.vcixp.install.adapter.DbAdapter;

public class SqlServerAdapter implements DbAdapter {
	@Override
	public String getDriver() {
		return "com.microsoft.sqlserver.jdbc.SQLServerDriver";
	}

	@Override
	public String validation() {
		return "select 1";
	}

	@Override
	public String url(Map<String, String> param) {
		return "jdbc:microsoft:sqlserver://" + param.get(IP) + ":" + param.get(PORT) + ";DatabaseName="
				+ param.get(DBNAME);
	}
}
